Local Master Key Variants

To protect key usage, variants of the Local Master Key are used for encryption of defined keys or key components. The Key Type Table defines the LMK pairs and variants that are used to protect various types of keys. For example, an MK-SMI is encrypted using LMK 28-29 variant 2.

In order to create an LMK variant, a non-secret fixed value (known as a variant) is XOR’ed with the first byte of the LMK. The variants used by the HSM are:

Variant 1 : A6

Variant 2 : 5A

Variant 3 : 6A

Variant 4 : DE

Variant 5 : 2B

Variant 6 : 50

Variant 7 : 74

Variant 8 : 9C

Variant 9 : FA

The example below demonstrates how a Local Master Key variant is calculated for key type  MK-SMI

1.    Refer to the Key Type Table to select the appropriate LMK pair for the type of key that you wish to encrypt. For example, for key type MK-SMI, LMK 28-29 is used:                                                                             

Test LMK 28-29: 1A1A 1A1A 1A1A 1A1A 1C1C 1C1C 1C1C 1C1C

2.    Identify from the Key Type Table which Variant of the LMK is required. For key type MK-SMI variant 2 is used:

Variant 2: 5A.

3.    Exclusive-OR  the selected variant with the first byte of the LMK pair :

1A XOR 5A = 40

4.    Replace the left-most byte of the LMK pair with the result of Step 3 and use the resulting key to encrypt the MK-SMI:

LMK Variant 2 = 401A 1A1A 1A1A 1A1A 1C1C 1C1C 1C1C 1C1C

 

When the Variants are applied to the standard test LMK set, the left-most bytes of the sets are as follows:

 

LMK Pair

First byte of LMK

1

2

3

4

5

6

7

8

9

00-01

A7

5B

6B

DF

2A

51

75

9D

FB

02-03

86

7A

4A

FE

0B

70

54

BC

DA

04-05

E6

1A

2A

9E

6B

10

34

DC

BA

06-07

C7

3B

0B

BF

4A

31

15

FD

9B

08-09

26

DA

EA

5E

AB

D0

F4

1C

7A

10-11

07

FB

CB

7F

8A

F1

D5

3D

5B

12-13

67

9B

AB

1F

EA

91

B5

5D

3B

14-15

46

BA

8A

3E

CB

B0

94

7C

1A

16-17

BA

46

76

C2

37

4C

68

80

E6

18-19

A7

5B

6B

DF

2A

51

75

9D

FB

20-21

A4

58

68

DC

29

52

76

9E

F8

22-23

A1

5D

6D

D9

2C

57

73

9B

FD

24-25

B5

49

79

CD

38

43

67

8F

E9

26-27

B0

4C

7C

C8

3D

46

62

8A

EC

28-29

BC

40

70

C4

31

4A

6E

86

E0

30-31

85

79

49

FD

08

73

57

BF

D9

32-33

80

7C

4C

F8

0D

76

52

BA

DC

34-35

8C

70

40

F4

01

7A

5E

B6

D0

36-37

89

75

45

F1

04

7F

5B

B3

D5

38-39

A7

5B

6B

DF

2A

51

75

9D

FB